import 'package:get/get.dart';
import '../../utils/common.dart';
import '../home/home_logic.dart';
import 'main_state.dart';

class MainLogic extends GetxController {
  final MainState state = MainState();
  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  /// 首页切换tab 子tab切换
  void selectTabBar(int index) {
    state.pageController.jumpToPage(index);
    state.selectIndex.value = index;
  }
}
